package com.docios.cookbook2.entity;

import java.util.List;

public class Category {
    String classid;
    String name;
    String parentid;
    List<CList> CLists;

    public static class CList {
        String classid;
        String name;
        String parentid;

        public CList(String classid, String name, String parentid) {
            this.classid = classid;
            this.name = name;
            this.parentid = parentid;
        }

        public String getClassid() {
            return classid;
        }

        public void setClassid(String classid) {
            this.classid = classid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getParentid() {
            return parentid;
        }

        public void setParentid(String parentid) {
            this.parentid = parentid;
        }

        @Override
        public String toString() {
            return "list{" +
                    "classid='" + classid + '\'' +
                    ", name='" + name + '\'' +
                    ", parentid='" + parentid + '\'' +
                    '}';
        }
    }

    public Category(String classid, String name, String parentid, java.util.List<CList> CLists) {
        this.classid = classid;
        this.name = name;
        this.parentid = parentid;
        this.CLists = CLists;
    }

    public String getClassid() {
        return classid;
    }

    public void setClassid(String classid) {
        this.classid = classid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentid() {
        return parentid;
    }

    public void setParentid(String parentid) {
        this.parentid = parentid;
    }

    public List<CList> getLists() {
        return CLists;
    }

    public void setCLists(List<CList> CLists) {
        this.CLists = CLists;
    }

    @Override
    public String toString() {
        return "Category{" +
                "classid='" + classid + '\'' +
                ", name='" + name + '\'' +
                ", parentid='" + parentid + '\'' +
                ", lists=" + CLists +
                '}';
    }
}

